package com.kzj.global.utils;

import org.springframework.util.DigestUtils;

public class EncodeUtil {
    public static String encode(String content,String prefix)
    {
        String s = DigestUtils.md5DigestAsHex(content.getBytes());
        return prefix+s;
    }
    public static String encode(String content)
    {
        return DigestUtils.md5DigestAsHex(content.getBytes());
    }
}
